// config.js
/**
 * 小程序后端接口配置文件
 */
var host = "http://localhost:8080/yiqing/api";
var root_host = "http://127.0.0.1:8001";
// var host = "https://valar.pub/api";
// var root_host = "https://valar.pub";
var api = {
  // 下面的地址配合 Server 工作
  host,        
  root_host,                                                        
  //配置
  categories: `${host}/categories`,
  //商品详情
  detail: `${host}/products/`,
  //用户信息
  personal_msg: `${host}/members`,
  //删除评论
  delete_comment: `${host}/comments`,
  //订单删除
  delete_order: `${host}/orders`,
  //评论
  comment: `${host}/products`,
  //评论操作
  comment_action: `${host}/members`,
  //完善信息
  member: `${host}/members`,
  //行业资讯
  news: `${host}/news.api`,
  news_detail: `${host}/news.api`,
  // 
  records: `${host}/records/`,
  //
  report: `${host}/records/`,
  //
  user: `${host}/users/`,
  //
  schools: `${host}/schools.api`,
  levels: `${host}/levels.api`,
  //登录
  login: `${host}/users/login.api`,
  //提交formid
  formID: `${host}/users/`,

  statics: `${host}/statics.api`
  
};
  //对外把对象config返回
module.exports = api;